import Mock from 'mockjs'

let getApi = {
  "algorithm_type/all": Mock.mock({
    "message": "",
    "data": [{
        "id": 6,
        "name": "person_smoke",
        "title": "抽烟行为",
        "enabled": 1,
        "sort": 1
      },
      {
        "id": 8,
        "name": "helmet_no_wear",
        "title": "未带安全帽",
        "enabled": 1,
        "sort": 2
      },
      {
        "id": 1,
        "name": "face_match",
        "title": "人脸匹配",
        "enabled": 1,
        "sort": null
      },
      {
        "id": 2,
        "name": "crowd_count",
        "title": "人群计数",
        "enabled": 1,
        "sort": null
      },
      {
        "id": 3,
        "name": "crowd_overlimit",
        "title": "人群超限",
        "enabled": 1,
        "sort": null
      },
      {
        "id": 4,
        "name": "crowd_aggregation",
        "title": "人群聚集",
        "enabled": 1,
        "sort": null
      },
      {
        "id": 5,
        "name": "person_run",
        "title": "奔跑",
        "enabled": 1,
        "sort": null
      },
      {
        "id": 7,
        "name": "person_car_hover",
        "title": "人车徘徊",
        "enabled": 1,
        "sort": null
      },
      {
        "id": 9,
        "name": "stairs_no_hold",
        "title": "未扶楼梯扶手",
        "enabled": 1,
        "sort": null
      },
      {
        "id": 10,
        "name": "car_capture",
        "title": "车辆抓拍",
        "enabled": 1,
        "sort": null
      },
      {
        "id": 11,
        "name": "region_invade",
        "title": "区域入侵(人脸识别)",
        "enabled": 1,
        "sort": null
      },
      {
        "id": 12,
        "name": "image_change",
        "title": "画面变化",
        "enabled": 1,
        "sort": null
      },
      {
        "id": 13,
        "name": "smoke_fire_detect",
        "title": "烟火检测",
        "enabled": 1,
        "sort": null
      },
      {
        "id": 14,
        "name": "steam_stop",
        "title": "冒气停止",
        "enabled": 1,
        "sort": null
      },
      {
        "id": 15,
        "name": "channel_block",
        "title": "通道占用",
        "enabled": 1,
        "sort": null
      },
      {
        "id": 16,
        "name": "belongings_left",
        "title": "物品滞留",
        "enabled": 1,
        "sort": null
      },
      {
        "id": 17,
        "name": "belongings_miss",
        "title": "物品遗失",
        "enabled": 1,
        "sort": null
      }
    ],
    "status_code": 200,
    "page_index": 0,
    "page_count": 0,
    "count": 0
  }),
  "device/all": Mock.mock({
    "count": 10,
    "data|10": [{
      "access_params": "string",
      "access_type": 0,
      "create_time": 1625539837103,
      "device_group_id": 0,
      "device_id|+1": 0,
      "device_type": 0,
      "name": "像机1",
      "related_id": 0,
      "status_code": 0,
      "status_desc": "string",
      "update_time": 1625539837103,
      "url": "string"
    }],
    "message": "成功",
    "page_count": 1,
    "page_index": 1,
    "status_code": 200
  }),
  people_group: Mock.mock({
    "count": 24,
    "data|23": [{
      "create_time": 1625539837103,
      "id|+1": 0,
      "name": "魅瞳-员工",
      "update_time": 1625539837103
    }],
    "message": "成功",
    "page_count": 2,
    "page_index": 1,
    "status_code": 200
  }),
  function: Mock.mock({
    "count": 23,
    "data|22": [{
      "algorithm_id|+1": 1,
      "create_time": 1625539837103,
      "frame_count": 2,
      "frame_rate": 1,
      "frame_unit": 2,
      "id|+1": 0,
      "locked": 0,
      "name": "断煤状态-A方案",
      "params": "{}",
      "update_time": 1625539837103
    }],
    "message": "成功",
    "page_count": 2,
    "page_index": 1,
    "status_code": 200
  }),
  event: Mock.mock({
    "count": 61,
    "data|60": [{
      "alert_type": "string",
      "algorithm_id|+1": 0,
      "algorithm_title": "人脸匹配",
      "channel_id|+1": 0,
      "channel_name": "路口向西-抽烟行为",
      "create_time": 1625539837103,
      "detail": "{}",
      "device_id|+1": 0,
      "device_name": "1#锅炉给煤机",
      "frame": "@image('200x200', '#000', '#fff', 'png', '全景图')",
      "function_id|+1": 0,
      "function_name": "断煤状态-A方案",
      "id|+1": 0,
      "milvus_id": 0,
      "target_frame": "@image('200x200', '#000', '#fff', 'png', '目标截图')",
      "timestamp": 1625539837103,
      "update_time": 1625539837103
    }],
    "message": "成功",
    "page_count": 2,
    "page_index": 1,
    "status_code": 200
  }),
}

export default getApi;